package com.atguigu.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.PurchaseDetailEntity;

import java.util.List;
import java.util.Map;

/**
 * @author huyulu
 * @email 1085068942@qq.com
 * @date 2021-11-28 23:13:17
 */
public interface PurchaseDetailService extends IService<PurchaseDetailEntity> {

    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 根据采购单id查找此采购单中的所有采购项
     *
     * @param id 采购单id
     * @author 胡菜鸡
     * @date 2021/12/28 14:11
     */
    List<PurchaseDetailEntity> listDetailByPurchaseId(Long id);

    /**
     * 新增采购需求
     *
     * @author 胡菜鸡
     * @date 2021/12/28 17:25
     */
    boolean savePurchaseDetail(PurchaseDetailEntity purchaseDetail);
}

